#ifndef __XM32LOO3_TEST_WWDT_H
#define __XM32LOO3_TEST_WWDT_H
#include  "cx32l003_pca.h"
#include  "cx32l003_gpio.h"

#define      DEBUG_PCA_GPI0x              GPIOA
#define      DEBUG_PCAx                   PCA

#define      DEBUG_PCA_COUNTERMODE        0x00;
#define      DEBUG_PCA_CLOCKDIVISION      PCA_Prescale_DIV32;
#define      DEBUG_PCA_THRESHOLDCOUNTER   0x80;

#define      DEBUG_PCA_COUNTTIMER_ENABLE      ENABLE
#define      DEBUG_PCA_IT_ENABLE              ENABLE


#define      DEBUG_PCA_IRQ                PCA_IRQn
#define      DEBUG_PCA_IRQHandler         PCA_IRQHandler


#define      DEBUG_PCA_CAPTURE_GPI0x          GPIOD
#define      DEBUG_PCA_CAPTURE_PIN            GPIO_Pin_4

#define      DEBUG_PCA_ChANNEL               PCA_Channel0
#define      DEBUG_PCA_ICPOLARITY             PCA_CAP_RISE_Edge;
#define   	 DEBUG_PCA_ICPRESCALER            PCA_Prescale_DIV2;

#define      DEBUG_PCA_COMPARE_VALUE          0xff
#define      DEBUG_PCA_COMPARE_BIT            0x01


#define      DEBUG_PCA_PWM_VALUEH           0x80
#define      DEBUG_PCA_PWM_VALUEL           0x08  
#define      DEBUG_PCA_PWM_ENABLE           ENABLE   


void  TEST_PCA_Config(void);
void  TEST_PCAHIGHOUTPUT_GPIOConfig(void);
void  TEST_PCA_CAPTURE_Config(void);
void  TEST_PCA_SOFTCOMPARE(void);
void  TEST_PCA_HIGHOUTPUT(void);
void  TEST_PCA_PWMOUTPUT(void);


#endif
